#================================================================================
# Level info
level.name = 'Spring Lakes'
level.author = 'Advance Wars 2'
level.description = 'Taken from Advance Wars 2, Versus, 4P Maps'

level.supportedDatabases = ['AI Wars']
level.playerCount = 4

#================================================================================
# Terrain data
level.setTileData( [[7,  7,  2,  2,  1,  1,  1,  2,  3,  3,  3,  3,  2,  1,  2,  2,  3,  3,  3,  2,  2,  2,  1,  2,  3,  3,  3,  3,  2,  2,  7,  7],
                    [7,  2,  2,  2,  9,  9,  1,  2,  3,  3,  3,  2,  1,  1,  1,  1,  2,  3,  3,  2,  1,  1,  1,  1,  2,  3,  3,  3,  2,  2,  2,  7],
                    [2,  2,  1,  1,  1,  1,  1,  3,  3,  3,  2,  1,  9, 10,  9,  1,  2,  3,  2,  1, 10,  0, 11,  1,  2,  3,  2,  2,  1,  2,  2,  2],
                    [2,  1,  1,  7,  7,  7,  1,  3,  3,  2,  1,  1,  1,  1,  1,  1,  2,  3,  2,  1,  1,  0,  1,  1,  2,  2,  1,  1,  1,  1,  2,  2],
                    [1,  1,  7,  7,  7,  7,  1,  1,  1,  2,  1,  1,  7,  7,  7,  1,  1,  2,  1,  1, 10,  0, 10,  2,  2,  1,  9,  9,  1,  1,  2,  2],
                    [2,  1,  7,  7,  1,  1,  2,  1,  1,  2,  2,  1,  7,  7,  7,  7,  1,  2,  1,  1,  1,  0,  2,  2,  1,  1,  1,  1,  1,  2,  2,  2],
                    [3,  1,  1,  1,  1,  2, 11,  0, 10,  1,  2,  1,  1,  7,  7,  7,  1,  2,  1,  1,  1,  0,  1,  1,  1,  1,  1,  1,  2,  2,  1,  2],
                    [3,  3,  3,  1,  2,  1,  1,  0,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  9,  1,  0,  1,  7,  7,  7,  1,  1,  1,  1,  1,  1],
                    [3,  2,  2,  1,  1,  1, 10,  0, 10,  2,  1,  9,  1,  2,  2,  1,  1,  1,  1,  1,  2,  0,  1,  7,  7,  7,  7,  7,  1,  1,  9,  1],
                    [2,  1,  1,  1,  2,  1,  1,  0,  1,  2,  1,  1,  1,  1,  1,  1,  1,  1,  0,  0,  0,  0,  1,  1,  1,  7,  7,  7,  1,  9,  1,  2],
                    [2,  9,  9,  1,  2,  1,  1,  0,  2,  1,  1,  1,  1,  7,  7,  7,  7,  7,  5,  7,  1,  1,  2,  1,  1,  1,  1,  1,  1,  2,  2,  3],
                    [2,  1,  1,  1,  1,  1,  1,  0,  1,  1,  1,  1,  7,  7,  7,  7,  7,  7,  5,  7,  7,  1,  1,  1,  1,  1,  1,  1,  2,  2,  3,  3],
                    [2,  2,  1,  1,  7,  7,  1,  0,  7,  7,  1,  7,  7,  7,  7,  7,  2,  1,  1,  7,  7,  7,  1,  1,  1,  1,  1,  2,  2,  3,  3,  3],
                    [3,  2,  2,  2,  7,  7,  7,  5,  7,  7,  9,  7,  7,  7,  7,  7,  9, 10,  9,  1,  7,  7,  1,  1,  1,  2,  2,  1,  2,  2,  2,  3],
                    [3,  3,  3,  2,  1,  7,  7,  5,  7,  1,  1,  2,  7,  7,  7,  7,  7,  1,  2,  7,  7,  7,  1,  1,  2,  9,  1,  1,  1,  1,  2,  2],
                    [3,  3,  3,  3,  0,  0,  0,  0,  1,  2,  2,  1,  2,  7,  7,  7,  7,  7,  5,  7,  7,  7,  2,  1,  9,  7,  7,  7,  7,  7,  1,  2],
                    [3,  3,  2,  2,  0,  1,  1,  1,  2,  2,  2,  1,  1,  1,  1,  1,  1,  7,  5,  7,  7,  2,  2,  1,  1,  7,  7,  7,  7,  7,  7,  7],
                    [2,  2,  1,  1,  0,  9,  9,  9,  2,  1,  2,  9,  1,  1,  2,  2,  1,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  7,  7,  7],
                    [2,  1,  7,  7,  5,  7,  1,  1,  1,  2,  2,  1,  9,  9,  1,  1,  1,  0,  2,  2,  2,  2,  1,  1, 10,  0, 10,  1,  1,  1,  7,  7],
                    [2,  1,  7,  7,  5,  7,  7,  7,  1,  2,  1,  2,  2,  1,  2,  1,  2,  0,  1,  1,  2,  2,  2,  1,  1,  0,  1,  1,  2,  2,  1,  2],
                    [3,  1,  2,  1,  0,  7,  7,  7,  1,  1,  2,  2,  2,  2,  2,  1,  1,  1,  7,  7,  1,  2,  2,  1, 10,  0, 11,  2,  1,  2,  2,  3],
                    [3,  3,  2,  2,  0,  0,  0,  0,  1,  1,  1,  1,  1,  0,  0,  1,  1,  1,  7,  7,  1,  1,  2,  1,  2,  2,  1,  1,  1,  1,  3,  3],
                    [3,  2,  1,  2,  2,  1, 10,  0, 10,  1,  1,  2,  1,  7,  7,  1,  1,  7,  7,  7,  1,  1,  2,  1,  1,  1,  7,  7,  7,  1,  2,  3],
                    [2,  1,  1,  1,  1,  1,  1,  0,  1,  1,  2,  2,  1,  7,  7,  7,  7,  7,  7,  7,  1,  2,  1,  7,  7,  7,  7,  7,  7,  1,  2,  3],
                    [2,  2,  9,  1,  2,  2, 11,  0, 10,  2,  3,  3,  1,  7,  7,  7,  7,  7,  1,  1,  1,  1,  9,  7,  7,  7,  7,  7,  7,  1,  2,  2],
                    [2,  2,  1,  9,  1,  2,  2,  1,  1,  3,  3,  2,  1,  1,  1,  1,  1,  1,  1,  2,  1,  9,  1,  2,  1,  2,  1,  1,  1,  2,  2,  2],
                    [7,  2,  2,  1,  2,  2,  3,  2,  3,  3,  3,  1,  9,  9, 10,  2,  2,  2,  3,  1,  2,  1,  1,  1,  2,  2,  2,  2,  2,  2,  2,  7],
                    [7,  7,  1,  2,  3,  3,  3,  3,  3,  3,  3,  2,  2,  2,  2,  2,  2,  3,  3,  3,  3,  2,  2,  2,  2,  3,  3,  3,  2,  2,  7,  7]] )

#================================================================================
# Player starting buildings
player1 = level.getPlayerData(0)
player1.addBuilding(level.getBuildingAtPosition(Point(6, 6)))
player1.addBuilding(level.getBuildingAtPosition(Point(8, 6)))
player1.addBuilding(level.getBuildingAtPosition(Point(6, 8)))
player1.addBuilding(level.getBuildingAtPosition(Point(8, 8)))

player2 = level.getPlayerData(1)
player2.addBuilding(level.getBuildingAtPosition(Point(20, 2)))
player2.addBuilding(level.getBuildingAtPosition(Point(22, 2)))
player2.addBuilding(level.getBuildingAtPosition(Point(20, 4)))
player2.addBuilding(level.getBuildingAtPosition(Point(22, 4)))

player3 = level.getPlayerData(2)
player3.addBuilding(level.getBuildingAtPosition(Point(6, 22)))
player3.addBuilding(level.getBuildingAtPosition(Point(8, 22)))
player3.addBuilding(level.getBuildingAtPosition(Point(6, 24)))
player3.addBuilding(level.getBuildingAtPosition(Point(8, 24)))

player4 = level.getPlayerData(4)
player4.addBuilding(level.getBuildingAtPosition(Point(24, 18)))
player4.addBuilding(level.getBuildingAtPosition(Point(26, 18)))
player4.addBuilding(level.getBuildingAtPosition(Point(24, 20)))
player4.addBuilding(level.getBuildingAtPosition(Point(26, 20)))